﻿@model Projectmanagement.Entity.SimulatorConfig
<fieldset>
    <legend>@Projectmanagement.Entity.SR.Form</legend>
    <div class="editor-label">
        @Html.LabelFor(model => model.SimulatorName)
    </div>
    <div class="editor-field">
        @{
            
            //var names = Membership.GetAllUsers().Cast<MembershipUser>().Where(s => s.IsLockedOut == false && CH.DB.EmployeeRoles.Where(e=>e.AccountName==s.UserName).FirstOrDefault().IsActivated==true ).Select(s => s.UserName);
            //List<string> list = new List<string>();

            //list = Membership.GetAllUsers().Cast<MembershipUser>().ToList<MembershipUser>()
            //    .Where(user => Employee.GetRoleLevel(user.UserName) < AdministratorRequired.LVL)
            //    .Select(user => user.UserName).ToList();
            //list.Add(Employee.GetLoginUserName());
            
            @Html.DropDownListFor(model => model.SimulatorName, new SelectList(ViewBag.names), "-请选择-")
            @Html.ValidationMessageFor(model => model.SimulatorName)
        }
    </div>
</fieldset>
@Html.Partial("editcommon", Model)
